package enemyPackage;

import javax.swing.ImageIcon;

import main.Sprite;

public class Bomb extends Sprite {

        protected String bomb = "../Image/alien_shot.gif";
        private boolean destroyed; 
        private double bomb_speed;

        public Bomb(int x, int y) {
            setDestroyed(true);
            this.x = x;
            this.y = y;
            ImageIcon ii = new ImageIcon(this.getClass().getResource(bomb));
            setImage(ii.getImage());
            setBombSpeed((Math.random()* 3) + 2);   
        }

        public void setDestroyed(boolean destroyed) {
            this.destroyed = destroyed;
        }

        public boolean isDestroyed() {
            return destroyed;
        }

		public void setBombSpeed(double bomb_speed) {
			this.bomb_speed = bomb_speed;
		}

		public double getBombSpeed() {
			return bomb_speed;
		}

		@Override
		public void draw() {
			// TODO Auto-generated method stub
			
		}

		@Override
		public void think() {
			// TODO Auto-generated method stub
			
		}

		@Override
		public boolean doesCollide(Sprite s) {
			// TODO Auto-generated method stub
			return false;
		}
    }